<?php
class Dangkydv extends AppModel {
	var $name = 'Dangkydv';
	var $validate = array(
		'docgia_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'dichvuk_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Docgia' => array(
			'className' => 'Docgia',
			'foreignKey' => 'docgia_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Dichvuk' => array(
			'className' => 'Dichvuk',
			'foreignKey' => 'dichvuk_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	/*
	 var $hasMany = array(
	 		'Chitietthanhtoan' => array(
	 			'className' => 'Chitietthanhtoan',
	 			'foreignKey' => 'dangkydv_id',
	 			'dependent' => false,
	 			'conditions' => '',
	 			'fields' => '',
	 			'order' => '',
	 			'limit' => '',
	 			'offset' => '',
	 			'exclusive' => '',
	 			'finderQuery' => '',
	 			'counterQuery' => ''
	 		)
	
	); */

}
